<% @page_title = "UserAuth | Login" -%>
<div id="login">
	<div class="header">
		<div id="logo">
			<img src="/assets/rails.png" />
			<p>RoR</p>
		</div>
		<div id="jumpLink">
			<%= link_to "CREATE AN ACCOUNT", :signup, class: 'jumpLink' %>
			<span class="icon-creater"></span>
		</div>
	</div>
	<div class="notice">
		<% if flash[:color]== "invalid" %>
			<span class="icon-warning"></span>
			<div class="errorLabel">
				<p><%=flash[:notice]%></p>
			</div>
		<%end%>
	</div>
	<div class= "authentication">
		<%= form_tag(:action => 'login_attempt') do %>
		<label>Username</label><%= text_field_tag(:username_or_email) %>
		<label>Password</label><%= password_field_tag :login_password %>
		<%= link_to "FORGOT PASSWORD?", :login, class: 'textLink' %>
		<div class="formItem">
			<%= submit_tag "Log In", :class => 'submitButton' %>
		</div>
		<div class="footer">
			<label>
				<input type="checkbox">
				Keep me signed in
			</label>
		</div>
		<% end %>
	</div>
</div>